﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<title>新用户注册</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author" content="">
	<link href="/static/css/bootstrap.min.css" rel="stylesheet" media="screen">
	<link href="/static/css/green.css" rel="stylesheet">
	<!--[if lt IE 9]>
	<script src="/static/js/html5shiv.js"></script>
	<script src="/static/js/respond.min.js"></script>
	<![endif]-->
</head>
<body>
	<div class="container">
		<div class="col-md-offset-3" id="logoutBox">
			<p>您已经登录了，要注册新用户请先退出登录</p>
			<br><br>
			<a href="#" id="logout">点击这里退出登录</a>
		</div>

	</div>
	<script src="/static/js/jquery-1.9.0.min.js"></script>
	<script src="/static/js/bootstrap.min.js"></script>
	<script src="/static/js/jquery.md5.js"></script>
	<script src="/static/js/json2.js"></script>
	<script>
		$(document).ready(function() {

			$("#logout").click(function() {
				
				$.ajax({
					type: "get",
					contentType: "application/json; charset=utf-8",
					dataType: "json",
					url: "/green/user/logout",
					data: {},
					//async : false,
					success: function(data) {
						$.each(data, function(k, v) {
							if (v.Key=="logoutSuccess"){
								location.href="/static/html/register.html";
							}
						});
					}
				});


			});
		});
</script>
</body>
</html>